<!-- 单据设置 – 每日销售报表 -->
<template>
  <div>
    <div class="more-bill-card" :class="ticketMode ? 'show' : 'hide'">
      <div class="title">一粒米餐厅</div>
      <div class="description">【每日销售报表】</div>
      <div class="desc-item">餐段：</div>
      <div class="desc-item">日期：2021-08-03至2021-08-03</div>
      <div class="desc-title">收银汇总</div>
      <div class="desc-item">
        <div>付款方式</div>
        <p>笔数</p>
        <span>合计收入</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-item">
        <div>现金</div>
        <p>2</p>
        <span>200.00</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-item">
        <div>收银合计</div>
        <p>2</p>
        <span>200.00</span>
      </div>
      <div class="desc-title">汇总</div>
      <div class="desc-item">
        <div>账单数</div>
        <span>100</span>
      </div>
      <div class="desc-item">
        <div>单均消费</div>
        <span>100</span>
      </div>
      <div class="desc-item">
        <div>消费人数</div>
        <span>100</span>
      </div>
      <div class="desc-item">
        <div>人均消费</div>
        <span>100</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-title">优惠统计</div>
      <div class="desc-item">
        <div>优惠方式</div>
        <span>200.00</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-item">
        <div>打折</div>
        <span>200.00</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-item">
        <div>优惠合计</div>
        <span>200.00</span>
      </div>
      <div class="desc-title">退菜明细</div>
      <div class="desc-item">
        <div>菜品名称</div>
        <p>数量</p>
        <span>金额</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-item">
        <div>*燕窝粥</div>
        <p>1份</p>
        <span>200.00</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-item">
        <div>退菜合计</div>
        <p>2</p>
        <span>200.00</span>
      </div>

      <div class="desc-title">赠送合计</div>
      <div class="desc-item">
        <div>菜品名称</div>
        <p>数量</p>
        <span>金额</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-item">
        <div>*燕窝粥</div>
        <p>1份</p>
        <span>200.00</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-item">
        <div>赠菜合计</div>
        <p>2</p>
        <span>200.00</span>
      </div>

      <div class="desc-title">出品汇总</div>
      <div class="desc-item">
        <div>菜品分类</div>
        <p>出品数</p>
        <span>销售流水</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-item">
        <div>海鲜</div>
        <p>2</p>
        <span>200.00</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-item">
        <div>出品销售合计</div>
        <p>2</p>
        <span>200.00</span>
      </div>
      <div class="address-box">
        <p>贵阳市南明区中华南路52号钻石广场3006</p>
        <p>订座电话：400-0851-123</p>
        <p>技术支持：贵州一粒米科技有限公司</p>
       
      </div>
    </div>
  </div>
</template>

<script setup>
// import { computed } from 'vue'
// import { useStore } from 'vuex'

// const store = useStore()
// const ticketMode = computed(() => store.getters.ticketMode)
</script>

<style lang="scss" scoped>
.hide {
  display: none;
  transition: all 1s;
}
.show {
  display: block;
  width: 420px;
  transition: all 1s;
}
.more-bill-card {
  width: 420px;
  height: 1336px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 3px 0px 24px 0px rgba(0, 0, 0, 0.16);
  box-sizing: border-box;
  padding: 30px 30px 0 30px;
  .title {
    font-size: 20px;
    font-family: PingFang SC, PingFang SC-Bold;
    font-weight: 700;
    text-align: center;
    color: #333333;
  }
  .description {
    font-size: 16px;
    font-family: PingFang SC, PingFang SC-Bold;
    font-weight: 700;
    text-align: center;
    color: #333333;
    margin: 10px 0;
  }
  .desc-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    font-family: PingFang SC, PingFang SC-Bold;
    font-weight: 700;
    text-align: center;
    color: #333333;
  }
  .desc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-family: PingFang SC, PingFang SC-Bold;
    font-weight: 700;
    color: #333333;
    margin-top: 10px;
  }
  .desc-line {
    width: 360px;
    height: 1px;
    background: #e2e2e2;
    margin-top: 10px;
  }
  .address-box {
    font-size: 12px;
    font-family: PingFang SC, PingFang SC-Regular;
    font-weight: 400;
    text-align: center;
    color: #333333;
    line-height: 24px;
    margin-top: 60px;
  }
}
</style>
